﻿using ClusteringProblem.Model.DatasetInformation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClusteringProblem.Model.DatasetInformation
{
    public class DatasetInfoFactory : IDatasetInfoFactory
    {
        public DatasetInfo CreateDatasetInfo(DatasetTypes dataset)
        {
            DatasetInfo datasetInfo = null;

            switch (dataset)
            {
                case DatasetTypes.glass:
                    datasetInfo = new GlassInfo();
                    break;
                case DatasetTypes.iris:
                    datasetInfo = new IrisInfo();
                    break;
                case DatasetTypes.parkinsons:
                    datasetInfo = new ParkinsonsInfo();
                    break;
                case DatasetTypes.wine:
                    datasetInfo = new WineInfo();
                    break;
                case DatasetTypes.ionosphere:
                    datasetInfo = new IonsphereInfo();
                    break;
                default:
                    break;
            }

            return datasetInfo;
        }
    }
}
